<?php

namespace app\payment;

use app\services\PropertyService;
use plugin\admin\app\model\UserPropertyLog;

class KindnessPay extends AbstractPay
{

    public function pay()
    {
        PropertyService::reduce(get_user_id(), PayFactory::KINDNESS, $this->data['total_amount'], $this->data['source']);
    }

    public function payBack()
    {
        PropertyService::add($this->data['user_id'], PayFactory::KINDNESS, $this->data['total_amount'], $this->data['source']);
    }
}